package credit.ccx.com.walletcore.coin;

/**
 * Created by gongdongyang on 2018/7/4.
 */

public enum  CoinType {

    COIN_TYPE_BTC("M/44'/0'/0'/0/","BTC"),COIN_TYPE_ETH("M/44'/60'/0'/0/0","ETH");

    private String path;
    private String name;

    private CoinType(String path, String name) {
        this.path = path;
        this.name = name;
    }

    public static String getPath(String name){
        for (CoinType item : CoinType.values()) {
            if (item.getName().equals(name) ) {
                return item.path;
            }
        }
        return null;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
